//
//  EAChooseMatch.m
//  WhatToEat
//
//  Created by Mac on 15/3/27.
//  Copyright (c) 2015年 Mac. All rights reserved.
//

#import "EAChooseMatch.h"
#import "EARectMealController.h"
#import "EAChooseCategoryViewController.h"
@interface EAChooseMatch ()
@property (strong, nonatomic) IBOutlet UIButton *nextBtn;

@end

@implementation EAChooseMatch

- (void)viewDidLoad {
    [super viewDidLoad];

      self.navigationItem.title=@"膳食搭配要求";

    
    UITableView *t=(UITableView *)self.view;
    t.separatorInset=UIEdgeInsetsMake(0, 0, 0, 15);
    
    [self setExtraCellLineHidden:t];

    self.tableView.showsVerticalScrollIndicator=NO;
    
    

    self.nextBtn.backgroundColor=kTingColor;
    
    
    
    
}


- (void)setExtraCellLineHidden: (UITableView *)tableView{
    
    UIView *view =[ [UIView alloc]init];
    
    view.backgroundColor = [UIColor clearColor];
    
    [tableView setTableFooterView:view];
    
    [tableView setTableHeaderView:view];

    
}
- (IBAction)nextAction:(UIButton *)sender
{
    
    

    

    
    
    
    
  
    EAChooseCategoryViewController * RVC=[self.storyboard instantiateViewControllerWithIdentifier:@"xuancan"];


    RVC.aty_level=self.aty_level;
    RVC.mealtype=self.mealtype;
    
   
    
   [self.navigationController pushViewController:RVC animated:YES];
    
    
}


//-(void)isChooseIng
//{
//    for (UITableViewCell * cell in self.tableView.visibleCells) {
//        
//        UIView * contentView=cell.contentView;
//        
//        for (UIView * v in contentView) {
//            
//            
//            
//            
//            
//            
//            
//            
//            
//        }
//        
//        
//        
//        
//    }
//    
//
//}





- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    
    if (indexPath.row==0) {
        
        
        
        return kUI_SCREEN_WIDTH*273/560;
        
        
    }
    
    if (indexPath.row==8) {
        return 120;
    }
    
    
    
    return 44;
}

@end
